/**
 * @file		vec.s
 * @brief		Vector Table
 * @note		None
 * @attention	None
 * 
 * <B><I>Copyright 2015 Socionext Inc.</I></B>
 */

//---------------------------------------------------------------
//   Condition Assenble Control
//---------------------------------------------------------------
	.text
	.section .VECTOR_TBL, "ax"
    .align 2

//-------------------------------------------------------------
//	Definition External Function
//-------------------------------------------------------------
	.extern	_Reset_Handler
	.extern	_Undef_ins_Handler
	.extern	_SWI_Handler
	.extern	_Pref_Abort_Handler
	.extern	_Data_Abort_Handler
	.extern	_IRQ_Handler
	.extern	_FIQ_Handler

//-------------------------------------------------------------
//	Vector Table
//-------------------------------------------------------------
	.global	_User_Vector_Table
_User_Vector_Table:
	LDR		PC, Reset_Addr
	LDR		PC, Undefined_Addr
	LDR		PC, SWI_Addr
	LDR		PC, Prefetch_Addr
	LDR		PC, Abort_Addr
	NOP								// reserved
	LDR		PC, IRQ_Addr
	LDR		PC, FIQ_Addr

//-------------------------------------------------------------
//	Address of Interrupt Handler
//-------------------------------------------------------------
Reset_Addr:		.long		_Reset_Handler
Undefined_Addr:	.long		_Undef_ins_Handler
SWI_Addr:		.long		_SWI_Handler
Prefetch_Addr:	.long		_Pref_Abort_Handler
Abort_Addr:		.long		_Data_Abort_Handler
IRQ_Addr:		.long		_IRQ_Handler
FIQ_Addr:		.long		_FIQ_Handler

	.end
